<!DOCTYPE>
<html >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>51度APP-登录</title>
    <style>
    	p{margin: 0px;padding: 0px;}
    	.default {color: #fff;font-family:PingFangSC-Regular;font-weight:400;color:rgba(255,255,255,1);}
    	.input{height: 50px; width: calc(100% - 40px); background:rgba(255,255,255,1);box-shadow:0px 10px 20px 0px rgba(0,0,0,0.2);border-radius:50px;  display:block;font-size:18px;font-family:PingFangSC-Regular;font-weight:400;color:rgba(118,129,150,1); border: 0px;padding-left: 20px; }
    	#save{ margin-top:40px;font-size: 20px;width:300px;height:50px;background:rgba(234,106,135,1);box-shadow:0px 10px 20px 0px rgba(0,0,0,0.1);border-radius:40px; color: #fff;}
    </style>
</head>
<body style="margin: 0px;padding: 0px;background:rgba(255,255,255,1);">
	<img alt="" src="/images/logo.png" style ="margin-left: 20px;"/>
	<input class="input" placeholder="51度APP已注册手机号" id="user_mobile" style="margin-top: 20px;margin-left: 20px;"/>
	<input class="input" placeholder="51度APP密码"  id="user_password"  style="margin-top: 20px;margin-left: 20px;" />    
	
	<p  style="text-align: center;"><input type="button" value="确定" id="save" /></p>
	
<script src="/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
$("#save").click(function (){
	var user_mobile = $("#user_mobile").val();
	var user_password = $("#user_password").val();
	$.post("/user/login",
	   		{"user_mobile":user_mobile,"user_password":user_password},function(data){
	   			console.log(data);
	   			var json  = JSON.parse(data); 
	   			console.log(json);
	   			alert(json.errmsg);
	   			if(json.code == 0){
	   				window.location.href = "http://api.aicishi.cn/shares/apply_out?token="+json.data.token;
	   			}
	   		}
	 );	
});
</script>
</body>
</html>